package com.ruoyi.novel.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频信息对象 a_video
 *
 * @author 张三
 * @date 2025-04-18
 */
@TableName("a_video")
public class Video  extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 类型一 */
    private Integer type1;

    /** 类型二 */
    private Integer type2;

    /** 用户 */
    private Integer userId;

    /** 视频标题 */
    @Excel(name = "视频标题")
    private String name;

    /** 简介 */
    private String content;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 视频地址 */
    private String video;

    /** 免费时长（s） */
    private Integer duration;

    /** 积分 */
    private BigDecimal integral;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setType1(Integer type1)
    {
        this.type1 = type1;
    }

    public Integer getType1()
    {
        return type1;
    }
    public void setType2(Integer type2)
    {
        this.type2 = type2;
    }

    public Integer getType2()
    {
        return type2;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setVideo(String video)
    {
        this.video = video;
    }

    public String getVideo()
    {
        return video;
    }
    public void setDuration(Integer duration)
    {
        this.duration = duration;
    }

    public Integer getDuration()
    {
        return duration;
    }
    public void setIntegral(BigDecimal integral)
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral()
    {
        return integral;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type1", getType1())
            .append("type2", getType2())
            .append("userId", getUserId())
            .append("name", getName())
            .append("content", getContent())
            .append("image", getImage())
            .append("video", getVideo())
            .append("duration", getDuration())
            .append("integral", getIntegral())
            .append("sort", getSort())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
